package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.TravelComment;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

//攻略主题服务接口
public interface ITravelCommentService {
    /**
     * 添加
     * @param travelComment
     */

    void save(TravelComment travelComment);

    /**
     * 编辑
     * @param travelComment
     */
    void update(TravelComment travelComment);

    /**
     * 删除
     * @param id
     */
    void delete(String id);

    /**
     * 查单个
     * @param id
     * @return
     */
    TravelComment get(String id);

    /**
     * 查多个
     * @return
     */
    List<TravelComment> list();


    //查询游记评论页面
    List<TravelComment> querytravelCommentBytravelId(TravelCommentQuery qo);
}
